package state;/** * Created by Administrator on 2018-11-2. */public class Test {    public static void main(String[] args) {        NewGumBallMachine newGumBallMachine = new NewGumBallMachine(10);        System.out.println(newGumBallMachine);        newGumBallMachine.insertQuarter();        newGumBallMachine.trunCrank();        System.out.println(newGumBallMachine);        newGumBallMachine.insertQuarter();        newGumBallMachine.trunCrank();        System.out.println(newGumBallMachine);        newGumBallMachine.insertQuarter();        newGumBallMachine.trunCrank();        System.out.println(newGumBallMachine);        newGumBallMachine.insertQuarter();        newGumBallMachine.trunCrank();        System.out.println(newGumBallMachine);    }}